import request from "@/utils/request";

//批发列表
export function whoableList(query) {
    return request({
        url: "/cy/wholesalelistings/app/list",
        headers: {
            isToken: false
        },
        method: "get",
        params: query
    });
}
//批发详情
export function whoableDetail(query) {
    return request({
        url: "/cy/wholesalelistings/app/detail/" + query.id,
        headers: {
            isToken: true
        },
        method: "get",
        params: query
    });
}
//小程序发布信息
export function postPublish(data) {
    return request({
        url: "/cy/wholesalelistings/app/publish",
        headers: {
            isToken: true
        },
        method: "post",
        data
    });
}
// 车系品牌
export function carBrandList(query) {
    return request({
        url: "/cxdq/brand",
        headers: {
            isToken: true
        },
        method: "get",
        params: query
    });
}
// 车系列表 
export function carList(query) {
    return request({
        url: "/cxdq/series",
        headers: {
            isToken: true
        },
        method: "get",
        params: query
    });
}
// 车型列表 
export function carModelsList(query) {
    return request({
        url: "/cxdq/models",
        headers: {
            isToken: true
        },
        method: "get",
        params: query
    });
}